<?php
namespace Ucmaim\Model;
use Think\Model;


class AdModel extends Model{
    public function get($area, $limit = 0){
        $map['ad_type'] = $area;
        if($limit > 0){
            $this->limit($limit);
        }
        return $this->where($map)->order('ad_sort desc, ad_id asc')->select();
    }
}